<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_WARNING",false);?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>商品栏目</title>
    <link rel="stylesheet" href="http://localhost/ly/shop/APP/admin/Tpl/Config/css/index.css">
    <script src="http://localhost/ly/shop/APP/admin/Tpl/Config/js/jquery-1.7.2.min.js"></script>
    <link href="http://localhost/ly/HDPHP/hdphp/Extend/Org/hdui/css/hdui.css" rel="stylesheet" media="screen"><script src="http://localhost/ly/HDPHP/hdphp/Extend/Org/hdui/js/hdui.js"></script>
    <script  type="text/javascript">
        $(function(){
            $(document).ready(function(){
                $("#right .art-lisi table tbody tr").removeClass("row_bg");
                $("#right .art-lisi table tbody tr:even").addClass("row_bg");
            })            
        })
    </script>

</head>
<body>
    <div id="admin">                     
        <div id="right">
            
            <div class="M-articless">
                <div class="top_box">
                    <h3>图片配置项</h3>
                </div>
                <div class="art-lisi">
                    <form action="<?php echo U(edit);?>" method='post'>
                    <table>
                        <thead>
                            <tr>
                                <th style="width:300px">图片配置项</th>                                 
                                <th  >配置项值</th>
                                <th  style="width:200px">其他</th>
                            </tr>
                        </thead> 

                        <tbody>
                            <?php $hd["list"]["f"]["total"]=0;if(isset($config) && !empty($config)):$_id_f=0;$_index_f=0;$lastf=min(1000,count($config));
$hd["list"]["f"]["first"]=true;
$hd["list"]["f"]["last"]=false;
$_total_f=ceil($lastf/1);$hd["list"]["f"]["total"]=$_total_f;
$_data_f = array_slice($config,0,$lastf);
if(count($_data_f)==0):echo "";
else:
foreach($_data_f as $key=>$f):
if(($_id_f)%1==0):$_id_f++;else:$_id_f++;continue;endif;
$hd["list"]["f"]["index"]=++$_index_f;
if($_index_f>=$_total_f):$hd["list"]["f"]["last"]=true;endif;?>

                                <input type="hidden" name="config[<?php echo $f['conf_id'];?>][conf_id]" value="<?php echo $f['conf_id'];?>"/>
                                <input type="hidden" name="config[<?php echo $f['conf_id'];?>][name]" value="<?php echo $f['name'];?>"/>
                                <tr>  
                                    <td>
                                        <?php echo $f['title'];?>
                                    </td>
                                    <td>
                                        <input type="text" name="config[<?php echo $f['conf_id'];?>][value]" value="<?php echo $f['value'];?>"/>
                                    </td>
                                    <td>
                                        <?php echo $f['info'];?>
                                    </td>                               
                                </tr>
                            <?php $hd["list"]["f"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                        </tbody> 
                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <input class="btn" type="submit" value="修改">
                                </td>
                            </tr>
                        </tfoot>  
                    </table>
                    </form>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>